

# 文件写操作

f = open("D:/PycharmProjects/example/b.txt", "a", encoding="UTF-8")
# for line in f:
#     print(line)
f.write("hello world")

f.flush()

try:
    f1 = open("D:/PycharmProjects/example/cccccc.txt", "a", encoding="UTF-8")
except:
    pass
